projects
/
gtk+3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11bfce3
)
Don't place dnd cursor in placeholder text
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 17 Dec 2017 15:52:33 +0000
(10:52 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 17 Dec 2017 15:54:21 +0000
(10:54 -0500)
That is just misleading - the entire placeholder text is going
to be replaced by the drop.
gtk/gtkentry.c
patch
|
blob
|
history
diff --git
a/gtk/gtkentry.c
b/gtk/gtkentry.c
index 8f3aa8e7480b2bd87344843ed59b3b3fb10cb8fc..a29a207d0e13d87bc39527033d429803d9273e81 100644
(file)
--- a/
gtk/gtkentry.c
+++ b/
gtk/gtkentry.c
@@
-10029,8
+10029,11
@@
gtk_entry_drag_motion (GtkWidget *widget,
priv->dnd_position = -1;
}
+ if (show_placeholder_text (entry))
+ priv->dnd_position = -1;
+
gdk_drag_status (context, suggested_action, time);
- if (
priv->dnd_position == -1
)
+ if (
suggested_action == 0
)
gtk_drag_unhighlight (widget);
else
gtk_drag_highlight (widget);